package day5;

import java.util.Scanner;

public class demo5 {
    public static void main(String[] args) {
        char[] num={'a','b','c','e','f','p','u','z'};
        Scanner sc=new Scanner(System.in);
        char newchar=sc.next().charAt(0);
        int index=sc.nextInt();
        int i;
        System.out.println(newchar+" "+index);
        for(i=0;i<num.length;i++){
            System.out.println(num);
            if(num[i]>newchar){
                break;
            }
        }
        for(int j=1;j<=num.length-i-1;i++){
            num[num.length-1]=num[num.length-j-1];
        }

    }
}
